<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>  
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

</head>
<body>

<jsp:include page="/WEB-INF/views/pesquisadesatisfacao/cabecalho.jsp" flush="true"></jsp:include>


<% Object validaColaborador = session.getAttribute("colaboradorValido"); %>
<fmt:bundle basename="br.com.universidade.castelo.branco.resources.ApplicationResources" prefix="">
<table cellSpacing="0" cellPadding="1" border="0" height="392px" width="40%" style="margin:0px auto;">
	<tr >
		<td align="center">
		
		<%String controleLogin = String.valueOf(validaColaborador);
		
		if(controleLogin == "false") {%>
			<div id="cor">
				<fmt:message key="login.erro.usuario.invalido" ></fmt:message>
			</div>
			<%session.invalidate();%>
		<%} %>
		
		<form:errors path="colaborador.*">
			<div id="cor">
				<fmt:message key="login.erro.usuario.invalido" ></fmt:message>	
			</div>
		</form:errors>
		
			<div id="cadeado">
			<form action="validaLogin" method="post">
				<table width="420" height="150" border="0">
					<tr>
						<td rowspan="3" width="230"></td>
				    	<td height="51" align="left" valign="bottom">
				    	 	<input type="text" name="login">
				    	</td>
					</tr>
					<tr>
				    	<td align="left" height="50">
				    	 	<input type="password" name="senha">
				    	</td>
					</tr>
					<tr>
						<td align="left" height="50">
								
								<input id="botao" type="submit" value='<fmt:message key="pds.botao.ok"></fmt:message>'>
						</td>
					</tr>		
				</table>
			</form>
			</div>		
		</td>
	</tr>

</table>
</fmt:bundle>
</body>
</html>